package com.ctcemti.mdm.project.sys.service;

import com.ctcemti.mdm.project.sys.entity.OperationLog;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.sql.SQLException;

/**
 * 操作日志Service接口
 * 
 * @author 
 * @date Tue Nov 12 10:28:50 CST 2019
 */
public interface IOperationLogService
{
    /**
     * 查询操作日志
     * 
     * @param id 操作日志ID
     * @return 操作日志
     */
    public OperationLog selectOperationLogById(Long id);

    /**
     * 查询操作日志列表
     * 
     * @param operationLog 操作日志
     * @return 操作日志集合
     */
    public PageInfo<OperationLog> selectOperationLogList(OperationLog operationLog);

    /**
     * 新增操作日志
     * 
     * @param operationLog 操作日志
     * @return 结果
     */
    public int insertOperationLog(OperationLog operationLog);

    /**
     * 修改操作日志
     * 
     * @param operationLog 操作日志
     * @return 结果
     */
    public int updateOperationLog(OperationLog operationLog);

    /**
     * 批量删除操作日志
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteOperationLogByIds(String ids);


    void uploadFile(HttpServletResponse response, HttpServletRequest request, String filename) throws SQLException, IOException;
}
